import { axios } from '@/utils/request'

export function entry (id) {
  return axios({
    url: '/entry/get',
    method: 'get',
    params: {
      id: id
    }
  })
}
export function addEntry (nurse) {
  return axios({
    url: '/entry/add',
    method: 'post',
    data: nurse
  })
}
export function delEntry (id) {
  return axios({
    url: '/nurse/entry/del',
    method: 'delete',
    data: {
      'id': id
    }
  })
}
export function nurseAgree (id, name, type) {
  return axios({
    url: '/nurse/entry/agree',
    method: 'post',
    data: {
      id: id,
      name: name,
      type: type
    }
  })
}
export function nurseReject (id, name, type) {
  return axios({
    url: '/nurse/entry/reject',
    method: 'post',
    data: {
      id: id,
      name: name,
      type: type
    }
  })
}
